package com.dreamchaser.familydevice.shiro.realm;

import org.apache.shiro.authz.Permission;
import org.apache.shiro.authz.permission.WildcardPermissionResolver;

/**
 * 采用shiro subject.checkPermission验证时调用
 */
public class CustomMatchPermissionResolver extends WildcardPermissionResolver {

    @Override
    public Permission resolvePermission(String permissionString) {
        return new CustomMatchPermission(permissionString);
    }
}
